package com.lej.core.upload

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job

class TestActivity : AppCompatActivity() {
    private val token =
        "I5m6XV-FOs1aUPQnu7v4eF_yLgJjbgoZrrWT3Ghk:2XtJw-UGk7WaLqgnq1jstyi3su0=:eyJzY29wZSI6ImluLW1pbmktcHJvZ3JhbSIsImRlYWRsaW5lIjoxNjI1MjE2NDg2fQ=="

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
            val intent = Intent(Intent.ACTION_OPEN_DOCUMENT)
            intent.addCategory(Intent.CATEGORY_OPENABLE)
            intent.type = "*/*"
            startActivityForResult(intent, 11)
    }

    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        super.onActivityResult(requestCode, resultCode, data)
        val coroutineScope = CoroutineScope(Job())

    }
}